<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link type="text/css" href="/media/css/styles.css" rel="stylesheet" />
		<link type="text/css" href="/media/css/jquery.ptTimeSelect.css" rel="stylesheet" />
	    <link type="text/css" href="/media/css/ui-theme/jquery-ui.css" rel="stylesheet"/>
		<script type="text/javascript" src="/media/js/jquery.js"></script>
	    <script type="text/javascript" src="/media/js/jquery-ui.js"></script>	
		<script type="text/javascript" src="/media/js/jquery.validate.js"></script>
		<script type="text/javascript" src="/media/js/jquery.maskedinput.js"></script>
		<script type="text/javascript" src="/media/js/reminder.js"></script>
		<script type="text/javascript" src="/media/js/icoach.js"></script>		
		<script type="text/javascript" src="/media/js/jquery.ptTimeSelect.js"></script>		
        <title>{% block title %}Welcome to iCoach {{ user }}{% endblock %}</title>						
    </head>
    <body>
        <div id="container"><!--BEGIN CONTAINER-->
            
            <div id="header"><!--BEGIN HEAD WRAP-->
             	
                <div id="logo"><!--BEGIN LOGO-->                
              	    <img alt="iCoach" src="/media/img/logo.jpg" />
              	    <p>You can live a better life</p>
              	</div><!--END LOGO-->
                 
                <div id="navigation"><!--BEGIN NAVIGATION-->
                                    
                    {% if  not admin %}
                	    <ul class="nav_links">
                            <li><a class="current" href="/">Home</a></li>
                            <li><a href="">About</a></li>
                            <li><a href="">Help</a></li>                        
                            <li><a href="/profile/{{ user }}">Account</a></li>
                        </ul> 
                    {% endif %}
                    
                    {% if admin %}                                                                 
                	    <ul class="nav_links">
                            <li><a class="current" href="/">Home</a></li>
                            <li><a href="">About</a></li>
                            <li><a href="/admin/">Admin</a></li>                        
                            <li><a href="/profile/{{ user }}">Account</a></li>
                        </ul>                                      
                    {% endif %}	               
                    <p style="text-align: right; margin-top: 12px;">
						<a href="/profile/{{ user }}/reminders/">Reminders</a> | 
                        {% block url %}
                            <a href="{{ url }}">{{ url_linktext }}</a>
                        {% endblock %}					
                    </p>
                </div><!--END NAVIGATION-->
                
                <div id="banner"><!--BEGIN BANNER-->
                    <div class="graph">
                        <img  alt="graph1" src="/media/img/graph1.jpg"/>
                        <p><a href="">Lorem Ipsum</a><br /> Maecenas eget magna leo</p>
                    </div>
                    <div class="graph">
                        <img alt="graph2" src="/media/img/graph2.jpg"/>
                        <p><a href="">Lorem Ipsum</a><br /> Maecenas eget magna leo</p>
                    </div>                                                   
                        
                </div><!--END BANNER-->                
                
            </div><!--END HEAD WRAP-->
            
			<div class="content"><!--BEGIN CONTENT-->
	            {% block content %}
					
				{% endblock %}
			</div><!--END CONTENT-->
                
        </div><!--END CONTAINER-->     
           
        <div id="footer"><!--BEGIN FOOTER-->
            <p> iCoach 2009 | Privacy Policy</p>
        </div><!--END FOOTER-->
    </body>
</html>
